package com.wootion.dizhi.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

@Data
@ApiModel("类型返回数据")
public class CategoryVo implements Serializable {
    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "类别")
    private String categoryName;

    @ApiModelProperty(value = "父级id ，一级pid是null")
    private String pid;

    @ApiModelProperty(value = "等级 1:一级 2:二级 3:三级")
    private String level;

    @ApiModelProperty(value = "子类型")
    private List<CategoryVo> children;
}
